DOS program ends but window does not close due to message display.

Cause:


The MS-DOS window remains open to display any messages, such as errors, that may be generated by the MS-DOS-based application.

Solution:


Select the 'Close on exit' check box in the program properties tab for the DOS application's icon.

NOTE 1: The MS-DOS-based application window should now close after the application has finished executing.
NOTE 2: This setting must be changed for each MS-DOS-based application individually. There is no way to set this option globally.